/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.given.designpatterns.structural.adapter;

import za.ac.cput.given.designpatterns.structural.adapter.CelciusReporter;
import za.ac.cput.given.designpatterns.structural.adapter.TemperatureInfo;

/**
 *
 * @author given
 */
public class TemperatureClassReporter extends CelciusReporter implements TemperatureInfo{

    @Override
    public double getTemperatureInC () {
        return temperatureInC;
    }
    @Override
    public  double getTemperatureInF( ){
        return ctof (temperatureInC) ;
    }
    @Override
    public void setTemperatureInC ( double temperatureInC) {
        this.temperatureInC = temperatureInC;
    }
   
    @Override
    public void setTemperatureInF(double temperatureInF) {
        this.temperatureInC = ctof(temperatureInF) ;
    }
    private double ctof(double f){
        return  f ;
    }
}
